<?php

class Skjb_Db_Table_Rowset extends Zend_Db_Table_Rowset
{
    public function toSelectArray($noneKey = null, $noneValue = null, $prefix = null)
    {
        $options = array();
        
        if ($noneKey !== null && $noneValue !== null) {
            $options[$noneKey] = $noneValue;
        }
        
        foreach ($this as $row) {
            $options[$row->getSelectKey($prefix)] = $row->getSelectValue();
        }
        return $options;
    }
}